#pragma once
#include <vector>
class CTileSystem
{
public:
	CTileSystem(void);
	~CTileSystem(void);

	void Render( void );
	
	int GetImageID()		const { return m_nImageID;}
	int GetTileSetHeight()	const { return m_nTileSetHeight;}
	int GetTileSetWidth()	const { return m_nTileSetWidth;}
	int GetTileWidth()		const { return m_nTileWidth;}
	int GetTileHeight()		const { return m_nTileHeight;}
	unsigned int GetGridHeight()const; 
	unsigned int GetGridWidth()	const; 

	void SetImageID(			 int _nID	)	{ m_nImageID		= _nID	  ;}
	void SetTileSetHeight(		 int _nHeight)	{ m_nTileSetHeight	= _nHeight;}
	void SetTileSetWidth(		 int _nWidth )	{ m_nTileSetWidth	= _nWidth ;}
	void SetTileWidth(			 int _nWidth )	{ m_nTileWidth		= _nWidth ;}
	void SetTileHeight(			 int _nHeight)	{ m_nTileHeight		= _nHeight;}
	void SetGridSize(unsigned int _unWidth, unsigned int _unHeight);
	void SetTile(unsigned int _nX, unsigned int _nY, unsigned int _nIndex);
	void SetAllTiles(unsigned int _nIndex);

private:

	std::vector<std::vector<int>> m_vGrid;
	int m_nImageID;
	int m_nTileSetHeight;
	int m_nTileSetWidth;
	int m_nTileWidth;
	int m_nTileHeight;
};

